# coding=utf-8
"""tb_api URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.views.static import serve
from django.conf import settings
# xadmin后台管理系统主路由配置
# import xadmin
# from xadmin.plugins import xversion
# xadmin.autodiscover()
# xversion.register_models()

urlpatterns = [
    url(r'^logview/(?P<path>.*)$', serve, {'document_root': settings.LOGDIR}),
    url(r'^site_media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_SITE}),
    url(r'^apidoc/(?P<path>.*)$', serve, {'document_root': settings.API_DOC}),
    # url(r'^xadmin/', xadmin.site.urls),
]
urlpatterns += [
    url('admin/', include('myadmin.urls')),     # 管理平台
]

# 1 search_admin
"""
@apiDefine user 账户管理
"""
"""
@apiDefine teachPlan 教学安排查询
"""
"""
@apiDefine dataDetail 数据详情
"""